package com.df.bpm.service.impl;

import com.df.bpm.mapper.BusinessEntityDTOmapper;
import com.df.bpm.service.BusinessEntityDTOservice;
import com.df.common.utils.MyQueryWrapper4Like;
import com.df.common.service.impl.BaseServiceImpl;
import com.df.bpm.dto.BusinessEntityDTO;

import com.df.common.utils.CommonUtils;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class BusinessEntityDTOserviceImpl extends BaseServiceImpl<BusinessEntityDTOmapper,BusinessEntityDTO> implements BusinessEntityDTOservice {
	public final BusinessEntityDTOmapper businessEntityDTOmapper;

    public List<BusinessEntityDTO> getList4Like(BusinessEntityDTO temp) {
        if(CommonUtils.varIsBlank(temp)){
            return null;
        }
        MyQueryWrapper4Like<BusinessEntityDTO> wrapper=new MyQueryWrapper4Like<>(temp);
        return businessEntityDTOmapper.selectList(wrapper.stringLike(temp));
    }
}